package com.simon.hse.activity.safe.jsa;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.simon.hse.R;
import com.simon.hse.activity.BaseActivity;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

/**
 * 安全技术措施查询
 */
@SuppressWarnings("all")
@ContentView(R.layout.activity_risk_recognition_safe_step_query)
public class RiskRecognitionAndSafeStepQuertActivity extends BaseActivity {
    @ViewInject(R.id.tv_common_title)
    TextView mTv_common_title;

    @ViewInject(R.id.tv_apply_work_permit_xgbg)
    TextView mTv_apply_work_permit_xgbg;

    @ViewInject(R.id.ll_danger_stop_bottom)
    LinearLayout mLl_danger_stop_bottom;

    private boolean isShowBottom = false;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mTv_common_title.setText("安全技术措施查询");
//        Bundle bundle = getIntent().getExtras();
//        if (bundle == null) {
//            mLl_danger_stop_bottom.setVisibility(View.VISIBLE);
//            mTv_apply_work_permit_xgbg.setText("特殊作业许可证及相关附件信息");
//        } else {
//            mLl_danger_stop_bottom.setVisibility(View.INVISIBLE);
//            mTv_apply_work_permit_xgbg.setText("特殊作业许可证及相关表格");
//        }
    }

    @Event(value = {R.id.iv_common_left, R.id.tv_train_record_cancel, R.id.tv_train_record_confirm})
    private void finish(View view) {
        switch (view.getId()) {
            case R.id.iv_common_left:
                finish();
                break;
            case R.id.tv_train_record_cancel:
                finish();
                break;
            case R.id.tv_train_record_confirm:
                finish();
                break;
        }
    }
}
